package com.example.sdk.utils;



public enum TradeErrorEnum {
    //系统错误信息
    E900000("ORD900000","系统级异常!")

    ;

    public final String code;
    public final String msg;

    TradeErrorEnum(String mCode,String mMsg){
        code = mCode;
        msg = mMsg;
    }

    /**
     * 根据CODE值获取异常状态内容
     * @param mCode
     * @return
     */
    public String getByCode(String mCode){
        for(TradeErrorEnum tradeErrorEnum: TradeErrorEnum.values()){
            if(mCode == tradeErrorEnum.code){
                return tradeErrorEnum.msg;
            }
        }
        return "";
    }
}
